-
Notifications
You must be signed in to change notification settings - Fork 463
feat: activate arbitrum, avax, gnosis collateral swaps via cow adapters #2766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
8e2cfbc to
f0eab11
Compare
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
b64f2c6 to
753499e
Compare
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
| // For CollateralSwap, block if the user has any zero-LTV collateral enabled | ||
| if (state.swapType === SwapType.CollateralSwap) { | ||
| return blockingAssets.length > 0; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clear zero-LTV blocking state when swap type changes
With the new swap-type-specific logic in hasZeroLTVBlocking, a user who triggers the zero-LTV guard while on a CollateralSwap and then switches to RepayWithCollateral (which this branch explicitly allows) will keep the previous ZeroLTVBlockingError and actionsBlocked state because the effect below only re-runs when assetsBlockingWithdraw or sourceToken change. In that scenario the UI continues to show a generic provider error and blocks the repay flow even though hasZeroLTVBlocking would now return false. Include state.swapType in the effect dependencies or otherwise clear the error on swap-type changes to avoid blocking permitted flows.
Useful? React with 👍 / 👎.
Uh oh!
There was an error while loading. Please reload this page.